import { createRouter, createWebHashHistory } from 'vue-router'
import manage from './manage'
const routes = [
  {
    path: '/',
    redirect: '/large-screen-management/page1'
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/login/Login')
  },
  {
    path: '/403',
    component: () => import('@/components/page/403'),
    meta: { title: '403' }
  },
  {
    path: '/:pathMatch(.*)',
    name: '404',
    component: () => import('@/components/page/404'),
    meta: { title: '404' }
  },
  ...manage,
]

const router = createRouter({
  history: createWebHashHistory(process.env.BASE_URL),
  routes
})

export default router
